gtk4.git
9 years agogsk: Take scale factor into account when setting up the gl scissor
Alexander Larsson [Mon, 20 Mar 2017 09:52:58 +0000 (10:52 +0100)]
gsk: Take scale factor into account when setting up the gl scissor

9 years agogl renderer: Fix hidpi fallback rendering
Alexander Larsson [Sun, 19 Mar 2017 18:24:50 +0000 (19:24 +0100)]
gl renderer: Fix hidpi fallback rendering

When allocating the surface, take scale into consideration.

9 years agoUpdate Friulian translation
Fabio Tomat [Sun, 19 Mar 2017 21:24:45 +0000 (21:24 +0000)]
Update Friulian translation

9 years agonotebook: Remove dead assignment
Timm Bäder [Sun, 19 Mar 2017 16:05:34 +0000 (17:05 +0100)]
notebook: Remove dead assignment

9 years agoGtkRecentManager: Remove superfluous local variable
Timm Bäder [Sun, 19 Mar 2017 13:28:32 +0000 (14:28 +0100)]
GtkRecentManager: Remove superfluous local variable

9 years agoGdkRenderer: Fix a compiler warning
Timm Bäder [Sun, 19 Mar 2017 13:26:02 +0000 (14:26 +0100)]
GdkRenderer: Fix a compiler warning

9 years agoGdkX11DeviceManager: Fix debugging output
Timm Bäder [Sun, 19 Mar 2017 13:24:54 +0000 (14:24 +0100)]
GdkX11DeviceManager: Fix debugging output

The 2 values added in 3.22 were missing from the source_names array.

9 years agoGdkMonitor: Use 1 as scale fallback value
Timm Bäder [Sun, 19 Mar 2017 13:24:02 +0000 (14:24 +0100)]
GdkMonitor: Use 1 as scale fallback value

The same value we use in gtk_widget_get_scale_factor.

9 years agocss-overview: Fix inconsistent British English use
Daniel Boles [Sat, 18 Mar 2017 12:29:28 +0000 (12:29 +0000)]
css-overview: Fix inconsistent British English use

9 years agovulkan: fix compilation
Tim-Philipp Müller [Sat, 18 Mar 2017 12:17:44 +0000 (12:17 +0000)]
vulkan: fix compilation

9 years agoentrycompletion: Remove unnecessary NULL check
Timm Bäder [Sat, 18 Mar 2017 06:13:13 +0000 (07:13 +0100)]
entrycompletion: Remove unnecessary NULL check

completion really shouldn't be NULL at this point, especially since it
gets dereferenced higher up in the function.

9 years agocalendar: Fix else branch indentations
Timm Bäder [Sat, 18 Mar 2017 06:06:35 +0000 (07:06 +0100)]
calendar: Fix else branch indentations

9 years agoGdkDrawingContext: Add missing break in switch statement
Timm Bäder [Fri, 17 Mar 2017 18:00:00 +0000 (19:00 +0100)]
GdkDrawingContext: Add missing break in switch statement

9 years agocss-overview: Fix+Explain color expr number ranges
Daniel Boles [Sat, 18 Mar 2017 01:13:42 +0000 (01:13 +0000)]
css-overview: Fix+Explain color expr number ranges

Last try, promise. They don’t all use 0 to 1. We should probably explain
the effects too. Hopefully this manages that while not being too verbose

9 years agoAvoid a critical warning in the filechooser portal
Matthias Clasen [Fri, 17 Mar 2017 23:56:33 +0000 (19:56 -0400)]
Avoid a critical warning in the filechooser portal

This was showing up when cancelling a portal file chooser
in recipes.

9 years agocss-overview: Elaborate how color expressions work
Daniel Boles [Fri, 17 Mar 2017 23:55:15 +0000 (23:55 +0000)]
css-overview: Elaborate how color expressions work

9 years agodocs/css-overview: Fix color functions’ arg orders
Daniel Boles [Fri, 17 Mar 2017 23:25:13 +0000 (23:25 +0000)]
docs/css-overview: Fix color functions’ arg orders

shade/alpha/mix() take colour(s) and a number that is the ratio by which
to transform them. It was written here that these shall be passed in the
order (number, colour). That was wrong: they must be passed in the order
(colour[s], number) to work, and for the Inspector not to flag an error.

9 years agoUpdate Latvian translation
Rūdolfs Mazurs [Fri, 17 Mar 2017 21:03:08 +0000 (23:03 +0200)]
Update Latvian translation

9 years agodocs: Remove mentions of gtk_init_with_args().
Murray Cumming [Fri, 17 Mar 2017 20:11:26 +0000 (21:11 +0100)]
docs: Remove mentions of gtk_init_with_args().

Because it has been removed: See commit 7e8eb3ddcd29ce9eecb14a56dbfeb0caf64dc772

9 years agoheaderbar: Fix size requisition variable mixup
Timm Bäder [Fri, 17 Mar 2017 17:49:52 +0000 (18:49 +0100)]
headerbar: Fix size requisition variable mixup

Happened when porting to gtk_widget_measure.

9 years agoGtkShaderBuilder Fix copy/paste error in precondition
Timm Bäder [Thu, 16 Mar 2017 18:16:24 +0000 (19:16 +0100)]
GtkShaderBuilder Fix copy/paste error in precondition

gtk_shader_builder_add_define should check both define_name and
define_value for not-NULL and not-empty, but the second precondition
check checks define_name again for not-empty-ness.

9 years agoAllow custom renderer for the inspector
Alexander Larsson [Fri, 17 Mar 2017 15:12:45 +0000 (16:12 +0100)]
Allow custom renderer for the inspector

If you set GTK_INSPECTOR_RENDERER to the same type of
values that GSK_RENDERER takes this can change the renderer
used for the inspector. This is useful if you're debugging
one renderer and don't want to affect the inspector.

9 years agoquartz: fix build for <10.12
Christoph Reiter [Tue, 14 Mar 2017 19:53:09 +0000 (20:53 +0100)]
quartz: fix build for <10.12

The style mask type was changed from NSUInteger to NSWindowStyleMask.
Use NSUInteger so it also works on older macOS.

https://bugzilla.gnome.org/show_bug.cgi?id=780019

9 years agoUpdate Russian translation
Stas Solovey [Tue, 14 Mar 2017 19:11:47 +0000 (19:11 +0000)]
Update Russian translation

9 years ago3.89.5
Matthias Clasen [Mon, 13 Mar 2017 23:52:06 +0000 (19:52 -0400)]
3.89.5

9 years agoAdd Friulian translation
Fabio Tomat [Mon, 13 Mar 2017 21:47:38 +0000 (21:47 +0000)]
Add Friulian translation

9 years agomir: start handling resize events again
William Hua [Mon, 13 Mar 2017 14:48:43 +0000 (10:48 -0400)]
mir: start handling resize events again

9 years agofilechooserwidget: Remvoe useless gtk_widget_show call
Timm Bäder [Mon, 13 Mar 2017 11:45:38 +0000 (12:45 +0100)]
filechooserwidget: Remvoe useless gtk_widget_show call

And a comment above. Even if it is not correct, it doesn't matter since
we call gtk_widget_show on it again later in that function.

9 years agomodelmenuitem: Remove unnecessary gtk_widget_show calls
Timm Bäder [Mon, 13 Mar 2017 11:14:38 +0000 (12:14 +0100)]
modelmenuitem: Remove unnecessary gtk_widget_show calls

9 years agolistbox: Avoid a gtk_widget_destroy call
Timm Bäder [Mon, 13 Mar 2017 11:06:53 +0000 (12:06 +0100)]
listbox: Avoid a gtk_widget_destroy call

9 years agofilechooserwidget: Avoid a gtk_widget_destroy
Timm Bäder [Tue, 7 Mar 2017 17:11:26 +0000 (18:11 +0100)]
filechooserwidget: Avoid a gtk_widget_destroy

9 years agofilechooserwidget: Remove unnecessary gtk_widget_show calls
Timm Bäder [Tue, 7 Mar 2017 16:37:35 +0000 (17:37 +0100)]
filechooserwidget: Remove unnecessary gtk_widget_show calls

9 years agoentry: make sure priv->current_pos is valid
Timm Bäder [Mon, 6 Mar 2017 17:41:12 +0000 (18:41 +0100)]
entry: make sure priv->current_pos is valid

We can e.g. get the entry dispose()d and a focus_out event after that
(because the toplevel unsets the focus which previously was the entry).
We then later use priv->current_pos in a call to pango API which makes
sure the given index is valid for the given layout. Since we lazily
create a GtkEntryBuffer in get_buffer() and a PangoLayout lazily in
gtk_entry_create_layout, these 2 are always valid but don't match
priv->current_pos in this situation.

Fix this by resetting priv->current-pos in dispose().

9 years agoentry: Remove cursor type parameter from get_cursor_locations
Timm Bäder [Mon, 6 Mar 2017 16:52:46 +0000 (17:52 +0100)]
entry: Remove cursor type parameter from get_cursor_locations

We are only ever passing CURSOR_STANDARD anyway.

9 years agomir: remove unused generate_configure_event ()
William Hua [Mon, 13 Mar 2017 08:07:37 +0000 (04:07 -0400)]
mir: remove unused generate_configure_event ()

9 years agomir: set placement for menu-type windows
William Hua [Mon, 13 Mar 2017 07:36:30 +0000 (03:36 -0400)]
mir: set placement for menu-type windows

9 years agomir: synthesize resize events
William Hua [Mon, 13 Mar 2017 06:52:15 +0000 (02:52 -0400)]
mir: synthesize resize events

9 years agomir: ignore resize events
William Hua [Mon, 13 Mar 2017 04:06:30 +0000 (00:06 -0400)]
mir: ignore resize events

9 years agomir: try mir before x11
William Hua [Fri, 10 Mar 2017 15:50:23 +0000 (10:50 -0500)]
mir: try mir before x11

9 years agoUpdate Slovak translation
Dušan Kazik [Sun, 12 Mar 2017 10:06:03 +0000 (10:06 +0000)]
Update Slovak translation

9 years agoUpdate Slovak translation
Dušan Kazik [Sun, 12 Mar 2017 09:44:53 +0000 (09:44 +0000)]
Update Slovak translation

9 years agoUpdated Serbian translation
Мирослав Николић [Sun, 12 Mar 2017 06:49:38 +0000 (07:49 +0100)]
Updated Serbian translation

9 years agoUpdated Serbian translation
Марко М. Костић [Sun, 12 Mar 2017 06:47:02 +0000 (07:47 +0100)]
Updated Serbian translation

9 years agoUpdate Indonesian translation
Andika Triwidada [Sat, 11 Mar 2017 08:56:28 +0000 (08:56 +0000)]
Update Indonesian translation

9 years agoUpdate Indonesian translation
Andika Triwidada [Sat, 11 Mar 2017 07:40:11 +0000 (07:40 +0000)]
Update Indonesian translation

9 years agoUpdated Czech translation
Marek Černocký [Sat, 11 Mar 2017 01:13:11 +0000 (02:13 +0100)]
Updated Czech translation

9 years agoUpdate Friulian translation
Fabio Tomat [Fri, 10 Mar 2017 16:55:09 +0000 (16:55 +0000)]
Update Friulian translation

9 years agoquartz: Fix another typo
Matthias Clasen [Fri, 10 Mar 2017 12:26:05 +0000 (07:26 -0500)]
quartz: Fix another typo

9 years agoquartz: Fix the build
Matthias Clasen [Fri, 10 Mar 2017 12:09:37 +0000 (07:09 -0500)]
quartz: Fix the build

A ; was left out inadvertently.

9 years agoAdd Friulian translation
Fabio Tomat [Fri, 10 Mar 2017 09:11:26 +0000 (09:11 +0000)]
Add Friulian translation

9 years agomir: log additional event types
William Hua [Wed, 8 Mar 2017 16:36:30 +0000 (11:36 -0500)]
mir: log additional event types

9 years agoUpdate German translation
Mario Blättermann [Thu, 9 Mar 2017 19:48:53 +0000 (19:48 +0000)]
Update German translation

9 years agoImprove GContentType usage
TingPing [Thu, 9 Mar 2017 03:52:58 +0000 (22:52 -0500)]
Improve GContentType usage

Convert to content type where needed.
Should fix various issues on Windows and OS X.

https://bugzilla.gnome.org/show_bug.cgi?id=734946

9 years agoUpdate Swedish translation
Josef Andersson [Tue, 7 Mar 2017 20:25:06 +0000 (20:25 +0000)]
Update Swedish translation

9 years agoUpdate Scottish Gaelic translation
GNOME Translation Robot [Tue, 7 Mar 2017 12:17:26 +0000 (12:17 +0000)]
Update Scottish Gaelic translation

(cherry picked from commit 112437f5ad4a904e874ce09922403ab44d34d94a)

9 years agoUpdate Scottish Gaelic translation
GNOME Translation Robot [Tue, 7 Mar 2017 12:11:43 +0000 (12:11 +0000)]
Update Scottish Gaelic translation

(cherry picked from commit 2fdcdfa403ed33f7732fb5a34f80311053db37dd)

9 years agotests: Fix use of C99 inline declaration
Philip Withnall [Tue, 7 Mar 2017 09:47:30 +0000 (09:47 +0000)]
tests: Fix use of C99 inline declaration

We don’t claim to use them yet, even if we perhaps should.

9 years agotestheightforwidth: cleanups
Daniel Boles [Tue, 7 Mar 2017 09:20:39 +0000 (09:20 +0000)]
testheightforwidth: cleanups

9 years agotestframe: label-yalign does nothing so don’t test
Daniel Boles [Mon, 6 Mar 2017 23:23:31 +0000 (23:23 +0000)]
testframe: label-yalign does nothing so don’t test

Since the border node was removed, this property has no effect.

https://bugzilla.gnome.org/show_bug.cgi?id=778886

9 years agotestframe: Simplify initial setting of padding
Daniel Boles [Mon, 6 Mar 2017 23:59:17 +0000 (23:59 +0000)]
testframe: Simplify initial setting of padding

Just start with both dimensions’ paddings at 0.

9 years agotestframe: Add CheckButton to toggle border off/on
Daniel Boles [Mon, 6 Mar 2017 23:12:20 +0000 (23:12 +0000)]
testframe: Add CheckButton to toggle border off/on

We should test this.

9 years agotestframe: Order controls better & improve labels
Daniel Boles [Mon, 6 Mar 2017 23:03:37 +0000 (23:03 +0000)]
testframe: Order controls better & improve labels

The :label-widget is drawn before the child, so put the controls that
set the alignment of the :label-widget before those that pad the child.

We set (horizontal|vertical) padding, not "[xy]thickness". Also change
to "label [xy]align" & use grid spacing, not spaces at end of Labels.

9 years agotestframe: Minimise typecasts
Daniel Boles [Mon, 6 Mar 2017 22:55:49 +0000 (22:55 +0000)]
testframe: Minimise typecasts

9 years agotestframe: Set value before connecting callbacks
Daniel Boles [Mon, 6 Mar 2017 22:53:15 +0000 (22:53 +0000)]
testframe: Set value before connecting callbacks

The value comes from the widget, and we were setting this after
connecting the callback, which applies the value to the widget…

9 years agotestframe: Use a generic widget pointer
Daniel Boles [Mon, 6 Mar 2017 22:39:01 +0000 (22:39 +0000)]
testframe: Use a generic widget pointer

9 years agotestheightforwidth: Add missing unref
Daniel Boles [Mon, 6 Mar 2017 20:57:17 +0000 (20:57 +0000)]
testheightforwidth: Add missing unref

9 years agoFix the completely broken tests/testheightforwidth
Daniel Boles [Mon, 6 Mar 2017 20:29:04 +0000 (20:29 +0000)]
Fix the completely broken tests/testheightforwidth

This was ruined, with only 1 of the 8 subwindows rendering any content.

This commit fixes the responsible errors in the embedded GtkBuilder UIs:
 • Fix broken replace by commit fb3d9022ad98049c887cec5aeffd6b73deb043ba
   of HBox with a Box having a broken orientation <property>
 • Replace VBox and [HV]Paned with GtkOrientable successors (properly!)
 • Remove use of Button:use_action_appearance, as this no longer exists

This commit also adds error reporting, in case other errors creep into
the GtkBuilder UI definitions, plus cleanup for the Builders and Windows

9 years agoAdwaita: border for selmode checkboxes
Jakub Steiner [Mon, 6 Mar 2017 14:34:38 +0000 (15:34 +0100)]
Adwaita: border for selmode checkboxes

- there was an extra border for selection mode

9 years agomir: don't create GDK_INPUT_ONLY windows
William Hua [Sat, 4 Mar 2017 15:13:01 +0000 (10:13 -0500)]
mir: don't create GDK_INPUT_ONLY windows

9 years agoFrame: minor update to intro docs
Daniel Boles [Mon, 6 Mar 2017 07:24:17 +0000 (07:24 +0000)]
Frame: minor update to intro docs

This incorporates a couple of recent tweaks from gtk-3-22.

9 years agoQuartz: Implement gdk_window_set_functions
Matthias Clasen [Mon, 6 Mar 2017 03:52:03 +0000 (22:52 -0500)]
Quartz: Implement gdk_window_set_functions

This is useful, and easy to implement.

9 years agoUpdate Swedish translation
Anders Jonsson [Sun, 5 Mar 2017 21:21:56 +0000 (21:21 +0000)]
Update Swedish translation

9 years agowidget: Remove direction-dependent margin code
Timm Bäder [Sun, 5 Mar 2017 15:24:20 +0000 (16:24 +0100)]
widget: Remove direction-dependent margin code

Since margin-left and margin-right are gone, we don't have to care
about the difference between them and start/end anymore and we can just
save start as left and end as right.

9 years agowidget: Remove get_valign_with_baseline
Timm Bäder [Sun, 5 Mar 2017 14:18:32 +0000 (15:18 +0100)]
widget: Remove get_valign_with_baseline

This only existed for backwards compat reasons which aren't interesting
for gtk4.

9 years agosizerequest: Fix min_size > nat_size error message
Timm Bäder [Sun, 5 Mar 2017 13:59:19 +0000 (14:59 +0100)]
sizerequest: Fix min_size > nat_size error message

Instead of mentioning the old _get_preferred_xxx functions, mention
measure() and print the for_size value as well. The orientation is given
by printing either "width" for GTK_ORIENTATION_HORIZONTAL or "height"
for GTK_ORIENTATION_VERTICAL.

9 years agotests/revealer-size: Use gtk_widget_measure
Timm Bäder [Sun, 5 Mar 2017 07:55:55 +0000 (08:55 +0100)]
tests/revealer-size: Use gtk_widget_measure

9 years agotestsuite: Remove :sorted usage
Timm Bäder [Sun, 5 Mar 2017 07:55:26 +0000 (08:55 +0100)]
testsuite: Remove :sorted usage

Not valid CSS anymore.

9 years agotreeviewcolumn: Use gtk_widget_measure to measure widget sizes
Timm Bäder [Sun, 5 Mar 2017 07:50:52 +0000 (08:50 +0100)]
treeviewcolumn: Use gtk_widget_measure to measure widget sizes

9 years agopathbar: Use gtk_widget_measure to measure widget sizes
Timm Bäder [Sun, 5 Mar 2017 07:48:01 +0000 (08:48 +0100)]
pathbar: Use gtk_widget_measure to measure widget sizes

9 years agoUpdate Basque language
Inaki Larranaga Murgoitio [Sat, 4 Mar 2017 16:44:35 +0000 (17:44 +0100)]
Update Basque language

9 years agoUpdated Lithuanian translation
Aurimas Černius [Sat, 4 Mar 2017 15:42:55 +0000 (17:42 +0200)]
Updated Lithuanian translation

9 years agowidget: Reword size request documentation
Timm Bäder [Sat, 4 Mar 2017 07:57:50 +0000 (08:57 +0100)]
widget: Reword size request documentation

9 years agotreeview: Use gtk_widget_measure to measure widget sizes
Timm Bäder [Sat, 4 Mar 2017 07:44:03 +0000 (08:44 +0100)]
treeview: Use gtk_widget_measure to measure widget sizes

9 years agomenus: Use gtk_widget_measure to measure widget sizes
Timm Bäder [Sat, 4 Mar 2017 07:18:36 +0000 (08:18 +0100)]
menus: Use gtk_widget_measure to measure widget sizes

9 years agoapplicationwindow: Use gtk_widget_measure to measure widget sizes
Timm Bäder [Sat, 4 Mar 2017 07:18:21 +0000 (08:18 +0100)]
applicationwindow: Use gtk_widget_measure to measure widget sizes

9 years agoUpdate Catalan translation
Jordi Mas [Sat, 4 Mar 2017 07:41:08 +0000 (08:41 +0100)]
Update Catalan translation

9 years agoUpdate Korean translation
Changwoo Ryu [Fri, 3 Mar 2017 15:40:34 +0000 (15:40 +0000)]
Update Korean translation

9 years agoUpdate Korean translation
Changwoo Ryu [Fri, 3 Mar 2017 15:39:56 +0000 (15:39 +0000)]
Update Korean translation

9 years agoUpdate Basque language
Inaki Larranaga Murgoitio [Fri, 3 Mar 2017 11:53:51 +0000 (12:53 +0100)]
Update Basque language

9 years agoUpdate Basque language
Inaki Larranaga Murgoitio [Fri, 3 Mar 2017 11:52:13 +0000 (12:52 +0100)]
Update Basque language

9 years agoHighContrast/parse-sass.sh: Use a reliable shebang
Daniel Boles [Fri, 3 Mar 2017 08:42:05 +0000 (08:42 +0000)]
HighContrast/parse-sass.sh: Use a reliable shebang

/usr/bin/sh does not exist on e.g. Debian sid.
Use the same shebang as Adwaita/parse-sass.sh

9 years agoAdwaita: style selectionmode checks for flowbox tiles
Jakub Steiner [Thu, 2 Mar 2017 11:39:02 +0000 (12:39 +0100)]
Adwaita: style selectionmode checks for flowbox tiles

- continue being asset based rather than drawn by CSS
- using node 'check' rather than style '.check'

https://bugzilla.gnome.org/show_bug.cgi?id=779074

9 years agoAdwaita: style flowbox tiles
Jakub Steiner [Thu, 16 Feb 2017 19:34:50 +0000 (20:34 +0100)]
Adwaita: style flowbox tiles

+ fixups by Daniel Boles from gtk-3-22

https://bugzilla.gnome.org/show_bug.cgi?id=779073

9 years agogtk-demo: Add 3fg touchpad swipe handling to gestures demo
Carlos Garnacho [Thu, 2 Mar 2017 17:18:31 +0000 (18:18 +0100)]
gtk-demo: Add 3fg touchpad swipe handling to gestures demo

We can handle those on wayland, so we should show it's possible.

9 years agogtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE
Carlos Garnacho [Thu, 2 Mar 2017 17:14:00 +0000 (18:14 +0100)]
gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE

There are GtkGestureSingle subclasses that can be made to handle multiple
fingers (GtkGestureSingle is a subclass of GtkGesture, and not the
opposite, after all). And GtkGestureSwipe already tries to handle
GDK_TOUCHPAD_SWIPE events, except this event handler silently ignores
those.

Falling back to the GtkGesture generic handler which already
handles touchpad gesture events fixes this.

9 years agoplacesview: Simplify button construction
Timm Bäder [Thu, 2 Mar 2017 13:06:01 +0000 (14:06 +0100)]
placesview: Simplify button construction

9 years agoplacessidebar: Fix css node name typo
Timm Bäder [Thu, 2 Mar 2017 13:05:46 +0000 (14:05 +0100)]
placessidebar: Fix css node name typo

9 years agowidgetnode: Remove unused define
Timm Bäder [Tue, 28 Feb 2017 13:22:39 +0000 (14:22 +0100)]
widgetnode: Remove unused define

9 years agocssnodestylecache: Use const pointer in lookup
Timm Bäder [Tue, 28 Feb 2017 07:23:19 +0000 (08:23 +0100)]
cssnodestylecache: Use const pointer in lookup

9 years agogdkwindow: Plug memory leak
Timm Bäder [Mon, 27 Feb 2017 14:33:45 +0000 (15:33 +0100)]
gdkwindow: Plug memory leak

gdk_drawing_context_get_clip returns a newly allocated cairo_region_t,
so we have to destroy it.